#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "pagelog.h"
#include <QTreeWidgetItem>
#include <QKeyEvent>
#include <stusql.h>
#include <dlg_addstu.h>


QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    virtual void keyPressEvent(QKeyEvent *event);

private slots:
    void on_pushButton_clicked();


    void on_btn_simulation_clicked();

    void on_btn_add_clicked();

    void on_pushButton_3_clicked();

    void on_btn_clear_clicked();

    void on_btn_del_clicked();

    void on_btn_update_clicked();

    void on_btn_search_clicked();

private:

    void updateTable();


    Ui::MainWindow *ui;
    PageLog m_dlgLogin;
    stuSql *m_ptrStuSql;

    Dlg_addStu m_dlgAddStu;
};
#endif // MAINWINDOW_H
